package com.stdspringboot.ctrl;

import com.stdspringboot.entity.Register;
import com.stdspringboot.service.IRegisterService;
import com.stdspringboot.vo.JsonResult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class RegisterCtrl {

    @Resource
    private IRegisterService service;

    @RequestMapping("/outInReg")
    public JsonResult reg(@RequestBody Register register){


        int i=service.save(register);


        return JsonResult.success("登记成功！");
    }
}
